﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERP.Workflow.Designer.Domain.Shared
{

    public enum PortAlignments
    {
        Top,
        TopRight,
        Right,
        BottomRight,
        Bottom,
        BottomLeft,
        Left,
        TopLeft
    }


    public enum SplitRule
    {
        [Description("异或发散")]
        SplitOR = 1,
        [Description("多重发散")]
        SplitXOR = 2,
        [Description("同步发散")]
        SplitAND = 3

    }
    public enum JoinRule
    {
        [Description("异或聚合")]
        SplitOR = 1,
        [Description("多重聚合")]
        SplitXOR = 2,
        [Description("同步聚合")]
        SplitAND = 3
    }
    public enum ReposeType
    {
        [Description("任一人")]
        Any = 1,
        [Description("所有人")]
        All = 2
    }
    public enum EntyType
    {
        [Description("手动")]
        Manual = 1,
        [Description("自动")]
        Auto = 2,
    }
    public enum ExitType
    {
        [Description("手动")]
        Manual = 1,
        [Description("自动")]
        Auto = 2,
    }
    public enum NodeType
    {
        [Description("普通步骤")]
        General = 1,

        [Description("开始")]
        Start = 1001,
        [Description("结束")]
        End = 1009,



        [Description("同步发散开始")]
        ANDStart = 2001,
        [Description("同步聚合结束")]
        ANDEnd = 2009,

        [Description("异或发散开始")]
        ORStart = 3001,
        [Description("异或聚合结束")]
        OREnd = 3009,

        [Description("多重发散开始")]
        XORStart = 4001,
        [Description("多重聚合结束")]
        XOREnd = 4009,

    }
    public enum ModeType
    {
        [Description("电脑端")]
        PC = 1,
        [Description("手机端")]
        Mobile = 2,
        [Description("电脑、手机端")]
        PCAndMoble = 3,
    }


    public static class TabItems
    {
        public const string BaseInfo = "基本信息";
        public const string RuleInfo = "路由信息";
        public const string OpenItem = "开启项";
    }
}
